package experiment1_bag;
public class jitutonglong {
    public static void main(String[] args) {
        int head = 5;
        int foot = 16;
        int rabbit = (foot - 2 * head) / 2;
        int chicken = head - rabbit;
        System.out.println("鸡的数量是：" + chicken);
        System.out.println("兔的数量是：" + rabbit);
    }
}
